package com.teach.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.teach.pojo.Course;
import com.teach.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseMapper extends BaseMapper<Course> {

    List<Course> getCoursesByClass(Long classId);

    List<User> getUserByClassAndCourse(@Param("classId") Long classId,@Param("courseId") Long courseId);
}
